unit SelFileUnit;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TfrmSelFile = class(TForm)
    ListBox1: TListBox;
    Button1: TButton;
    Button2: TButton;
    Label1: TLabel;
    procedure Button2Click(Sender: TObject);
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
    vMode: Boolean;
  end;

var
  frmSelFile: TfrmSelFile;

implementation

{$R *.dfm}


procedure TfrmSelFile.Button1Click(Sender: TObject);
begin
  if ListBox1.ItemIndex <> -1 then
    vMode := true;
  close;
end;

procedure TfrmSelFile.Button2Click(Sender: TObject);
begin
  close;
end;

end.
